package com.fifth.user.service;

import com.fifth.common.pojo.dto.CommonResult;
import com.fifth.common.pojo.entity.Comment;

public interface CommentService {
    //根据商品查询评论信息
    CommonResult findComment(String goodsid,Integer pageCurrent,Integer pageSize);

    CommonResult deleteById(String id);

    CommonResult updateComment(Comment comment);

    CommonResult findByUserId();

    void addComment(String code,String goodsid ,String userid);

    CommonResult findByGoodsId(String code, String goodsid);

    CommonResult findMyComment(String goodsid,Integer pageCurrent,Integer pageSize);

    CommonResult getCommentById(String id);

    /**
     * 添加评论
     * @param comment
     * @return
     */
    CommonResult addCommentByUid(Comment comment);
}
